object frmBalcaoDevolucao: TfrmBalcaoDevolucao
  Left = 239
  Top = 297
  Width = 812
  Height = 237
  Caption = 'Itens do Documento'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object DBGrid1: TDBGrid
    Left = 0
    Top = 0
    Width = 796
    Height = 145
    Align = alTop
    DataSource = DS_Saida
    TabOrder = 0
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
    Columns = <
      item
        Expanded = False
        FieldName = 'SAI_SEQITEM'
        ReadOnly = True
        Title.Caption = 'Seq'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'SAI_IDFITEM'
        ReadOnly = True
        Title.Caption = 'Cod Item'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'Descricao'
        Title.Caption = 'Nome do Produto'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'SAI_PREVEN'
        ReadOnly = True
        Title.Caption = 'Pre'#231'o de Venda'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'SAI_QUANTI'
        ReadOnly = True
        Title.Caption = 'Qtde Comprada'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'SAI_QTDDEVOLUCAO'
        Title.Caption = 'Qtde Devolvida'
        Visible = True
      end>
  end
  object BitBtn1: TBitBtn
    Left = 144
    Top = 160
    Width = 75
    Height = 25
    TabOrder = 1
    Kind = bkOK
  end
  object BitBtn2: TBitBtn
    Left = 376
    Top = 160
    Width = 75
    Height = 25
    Caption = 'Cancela'
    TabOrder = 2
    Kind = bkCancel
  end
  object DS_Saida: TDataSource
    DataSet = SQLC_Saida
    Left = 336
    Top = 32
  end
  object SQLC_Saida: TSQLClientDataSet
    CommandText = 
      'SELECT'#13#10'  SAI_SEQITEM,'#13#10'  SAI_IDFITEM,'#13#10'  SAI_PREVEN,'#13#10'  SAI_PRE' +
      'TAB,'#13#10'  SAI_QUANTI,'#13#10'  SAI_QTDDEVOLUCAO'#13#10'FROM SAIDA_ITEM'#13#10'WHERE ' +
      'SAI_IDFDOC=:SAI_IDFDOC'
    Aggregates = <>
    Options = [poAllowMultiRecordUpdates, poAllowCommandText]
    ObjectView = True
    Params = <
      item
        DataType = ftUnknown
        Name = 'SAI_IDFDOC'
        ParamType = ptInput
      end>
    BeforePost = SQLC_SaidaBeforePost
    DBConnection = DtmGeral.ConexaoBanco
    Left = 368
    Top = 32
    object SQLC_SaidaSAI_SEQITEM: TSmallintField
      DisplayWidth = 5
      FieldName = 'SAI_SEQITEM'
      Required = True
    end
    object SQLC_SaidaSAI_IDFITEM: TIntegerField
      FieldName = 'SAI_IDFITEM'
      Required = True
    end
    object SQLC_SaidaSAI_PREVEN: TFMTBCDField
      FieldName = 'SAI_PREVEN'
      Required = True
      Precision = 15
      Size = 8
    end
    object SQLC_SaidaSAI_QUANTI: TFMTBCDField
      FieldName = 'SAI_QUANTI'
      Required = True
      Precision = 15
      Size = 3
    end
    object SQLC_SaidaSAI_QTDDEVOLUCAO: TSmallintField
      FieldName = 'SAI_QTDDEVOLUCAO'
      OnValidate = SQLC_SaidaSAI_QTDDEVOLUCAOValidate
    end
    object SQLC_SaidaSAI_PRETAB: TFMTBCDField
      FieldName = 'SAI_PRETAB'
      Required = True
      Precision = 15
      Size = 8
    end
    object SQLC_SaidaDescricao: TStringField
      FieldKind = fkInternalCalc
      FieldName = 'Descricao'
      Size = 40
    end
  end
end
